package com.xinsoft.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinsoft.entity.dto.QuaMaterialInspectionDTO;
import com.xinsoft.entity.dto.QuaMaterialInspectionParam;
import com.xinsoft.entity.po.QuaMaterialInspection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author hsm
* @description 针对表【qua_material_inspection(质量检验)】的数据库操作Mapper
* @createDate 2023-08-14 17:13:36
* @Entity com.xinsoft.entity.po.QuaMaterialInspection
*/
public interface QuaMaterialInspectionMapper extends BaseMapper<QuaMaterialInspection> {

    /**
     * 分页查询
     * @param page
     * @param param
     * @return
     */
    IPage<QuaMaterialInspectionDTO> findListByParam(Page<?> page, @Param("param") QuaMaterialInspectionParam param);

    /**
     * 详情查询
     * @param id
     * @return
     */
    QuaMaterialInspectionDTO getInfoById(@Param("id") Integer id);


    List<Integer> getCheckPlanIdByMaterialId(@Param("materialId") Integer materialId,@Param("checkTypeId") Integer checkTypeId);


}




